<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" 
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
	 <properties resource="db.properties" />
	<settings>
		<!-- 全局启用或禁用延迟加载。当禁用时，所有关联对象都会即时加载。默认：true  -->
	        <setting name="lazyLoadingEnabled" value="true"/>
	        <!-- 当启用时，有延迟加载属性的对象在被调用时将会完全加载任意属性。否则，每种属性将会按需要加载 -->
	        <setting name="aggressiveLazyLoading" value="false"/>
         </settings>

	<typeAliases>
		<typeAlias type="com.cmccsi.entity.User" alias="user"/>
	</typeAliases>
	
	<environments default="development">
	    	<environment id="development">
	    		<transactionManager type="JDBC"/>
				<dataSource type="POOLED">
			        <property name="driver" value="${driver}"/>
			        <property name="url" value="${url}"/>
			        <property name="username" value="${user}"/>
			        <property name="password" value="${password}"/>
		      	</dataSource>
	    	</environment>
        </environments>
	<mappers>
		<mapper resource="com/cmccsi/mapper/qxdeptMemberDtoMapper.xml"/>
		<mapper resource="com/cmccsi/mapper/qxdeptDtoMapper.xml"/>
		<mapper resource="com/cmccsi/mapper/qxdomainDtoMapper.xml"/>
		<mapper resource="com/cmccsi/mapper/qxuserDtoMapper.xml"/>
		<mapper resource="com/cmccsi/mapper/UserMapper.xml"/>
	</mappers>
</configuration>